<template>
  <div class="not-searching">
    <span style="color: rgba(0,0,0,.5);">{{ noDataContent }}</span>
    <b-img src="./static/image/cat.gif" style="width: 120px; height: 120px;" />
  </div>
</template>

<script>

const noDataContent = {
  noData: '暂时还没有数据哦~',
  loading: '稍等下哦，正在加载数据中...'
}

export default {
  props: {
    isShow: Boolean,
    type: {
      type: String,
      default: 'noData'
    }
  },
  data () {
    return {
      noDataContent: noDataContent[this.type]
    }
  }
}
</script>

<style lang="stylus" scoped>
  .not-searching
    height 600px
    display flex
    flex-direction column
    align-items center
    justify-content center
    margin auto
</style>
